package edu.csumb.itcd.teammario;

import java.util.ArrayList;

public class Level1 extends EnemyFactory {

	public Level1()
	{
		loadLevel();
		currentLevel = 1;
	}
	
	public boolean loadNextLevel()
	{
		level = new Level2();
		return true;
	}
	
	public void loadLevel()
	{
		wave.clear();
		ArrayList<Enemy> enemySpawnArray = new ArrayList<Enemy>();
		
		enemySpawnArray.add(new Enemy(spawnEnemyPoint()));
		wave.add(enemySpawnArray);
		
		enemySpawnArray = new ArrayList<Enemy>();
		enemySpawnArray.add(new Enemy(spawnEnemyPoint()));
		wave.add(enemySpawnArray);
		
		enemySpawnArray = new ArrayList<Enemy>();
		enemySpawnArray.add(new Enemy(spawnEnemyPoint()));
		enemySpawnArray.add(new Enemy(spawnEnemyPoint()));
		enemySpawnArray.add(new Enemy(spawnEnemyPoint()));
		wave.add(enemySpawnArray);
		
		enemySpawnArray = new ArrayList<Enemy>();
		for (int i = 0; i < 5; i++)
		{
			enemySpawnArray.add(new Enemy(spawnEnemyPoint()));
		}
		wave.add(enemySpawnArray);
		
		enemyMin = 1;
	}
}
